package com.group02.community.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.group02.community.entity.user.SysRoleMenu;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoleMenuMapper extends BaseMapper<SysRoleMenu> {
    /**
     * 根据id查询
     * @param id
     * @return
     */
    List<SysRoleMenu> selectRoleMenuById(Long id);

    /**
     * 删除某个角色下的所有
     * @param id
     */
    void deleteByAllRoleId(Long id);
}
